<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="542536566763012535145636" property="qc:admins" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>叫醒耳朵 - 详情</title>
<meta content=",把耳朵叫醒,享笑" name="keywords" />
<meta
	content="所有的女朋友里，我最喜欢老夏。因为她和我像，高贵冷艳俗气，俗到骨子里。  我们总是在夏天刚开始的那几天去富民路和巨鹿路路口的酒吧。那有一棵著名大树，我们就坐在树下，叼着吸管看人来人往。有时候下午开始看，..."
	name="description" />
<meta content="width=1050" name="viewport" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/css/common.css?v7.2" type="text/css" rel="stylesheet" />
<link href="/css/public.css?v1" type="text/css" rel="stylesheet" />
<link type="image/x-icon" rel="icon" mce_href="/images/favicon.ico"
	href="/images/favicon.ico?v=0.1" />
<link rel="stylesheet" href="/dist/APlayer.min.css">
<link type="image/x-icon" rel="shortcut icon"
	mce_href="/images/favicon.ico" href="/images/favicon.ico?v=0.1" />
<script src="/js/hm.js?ed37722b76c3b14891aee449d10db2b1"></script>
<script src="/js/jq.js?v4.1" type="text/javascript"></script>
<script src="/js/ss.js?v4.8" type="text/javascript"></script>
<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript">


function getBrowser()
{  
   var OsObject = "";  
   if(navigator.userAgent.indexOf("MSIE")>0) {  
		var browser=navigator.appName;
		var b_version=navigator.appVersion; 
		var version=b_version.split(";"); 
		var trim_Version=version[1].replace(/[ ]/g,""); 
		if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0") 
		{ 
			return("IE6"); 
		} 
		else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE7.0") 
		{ 
			return("IE7"); 
		} 
		else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE8.0") 
		{ 
			return("IE8"); 
		} 
		else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") 
		{ 
			return("IE9"); 
		}
		else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE10.0") 
		{ 
			return("IE10"); 
		}
   }  
   if( navigator.userAgent.indexOf("Firefox")>0){  
        return "Firefox";  
   }
   if( navigator.userAgent.indexOf("Chrome")>0){  
        return "Chrome";  
   }
   if( navigator.userAgent.indexOf("Opera")>0){  
        return "Opera";  
   } 
   if( navigator.userAgent.indexOf("Safari")>0) {  
        return "Safari";  
   }
   return 'Others';  
} 
(function(){
	vars = {};
	vars.browser = getBrowser();
	vars.hello_ketty = "heimao";
	vars.jsUrl = "http://www.sharesmile.cn/js/";
	vars.homeUrl = 'http://www.sharesmile.cn/';
	vars.siteName = '享笑网 - www.ShareSmile.cn - 享你所想,享你所笑';
	vars.publicUrl = "/public/";
	vars.showgirlUrl = "/user#showgirl";
	vars.userid = '10460';
	vars.username = '416148489@qq.com';
	vars.nickname = '阿斗';
	vars.gender = 0;
	vars.PHPSESSID = "krach1sltrpu5pa9ldu9jen4k2";
	vars.ajaxSubmiting = false;
	vars.sysImageUrl = '/public/system/';
	vars.qingImageUrl = '/public/qing/';
	vars.headImageUrl = '/public/userhead/';
	vars.postImageUrl = '/public/post/';
	vars.essayImageUrl = '/public/essay/';
	vars.jokesImageUrl = '/public/jokes/';
	vars.showgirlImageUrl = '/public/showgirl/';
	vars.photoImageUrl = '/public/photo/';
	vars.commStatUrl = '/Stat/stat';
	vars.cookieUMessage = 'HASMESSAGE'+vars.userid;
	vars.voteBlankColor = new Array( '#5DBBEF', '#95E62A', '#CC1CD9', '#FFCD10', '#F79395');
	var d = new Date();
	vars.todayTimeString = 20160122;
})();
</script>
<script src="/js/share.js?v=89860593.js?cdnversion=403739"></script>
<style type="text/css" media="screen">
p.audioplayer_container span {
	visibility: hidden;
	height: 24px;
	overflow: hidden;
	padding: 0;
	border: none;
}
</style>
<link rel="stylesheet" href="/css/share_style0_16.css?v=6aba13f0.css" />
</head>
<body>
	<div
		style="position: absolute; left: -9999em; top: 175px; width: auto; z-index: 1987;"
		class="aui_state_focus">
		<div class="aui_outer">
			<table class="aui_border">
				<tbody>
					<tr>
						<td class="aui_nw"></td>
						<td class="aui_n"></td>
						<td class="aui_ne"></td>
					</tr>
					<tr>
						<td class="aui_w"></td>
						<td class="aui_c">
							<div class="aui_inner">
								<table class="aui_dialog">
									<tbody>
										<tr>
											<td class="aui_header" colspan="2">
												<div class="aui_titleBar">
													<div class="aui_title" style="cursor: move;">消息</div>
													<a class="aui_close">&times;</a>
												</div>
											</td>
										</tr>
										<tr>
											<td class="aui_icon" style="display: none;">
												<div class="aui_iconBg"
													style="background: transparent none repeat scroll 0% 0%;"></div>
											</td>
											<td class="aui_main" style="width: auto; height: auto;">
												<div class="aui_content" style="padding: 20px 25px;">
													<div class="aui_loading">
														<span>loading..</span>
													</div>
												</div>
											</td>
										</tr>
										<tr>
											<td class="aui_footer" colspan="2">
												<div class="aui_buttons" style="display: none;"></div>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</td>
						<td class="aui_e"></td>
					</tr>
					<tr>
						<td class="aui_sw"></td>
						<td class="aui_s"></td>
						<td class="aui_se" style="cursor: se-resize;"></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<div class="pb-container">
		<div class="pb-container-main pb-after-clear">
			<!-- 公共头部 -->
			<div class="pb-main pb-navwrap pb-after-clear">
				<div class="pb-iblock pb-fl pb-logo">
					<a href="index.html"><img alt="享笑网LOGO 征文比赛 有奖征文"
						src="/images/logo.jpg" /></a>
				</div>
				<div class="pb-iblock pb-fl pb-nav">
					<ul> 
                          <li><a href="/index">首页</a></li> 
						  <li><a href="/news">征文比赛</a></li> 
                          <li><a href="/world/pic">倾听世界</a></li> 
                          <li><a href="/earlist">叫醒耳朵</a></li>  
                          <li class="pb-nav-li-last"><a href="joke/select.do">每日一笑</a></li> 
                    </ul> 
				</div>
				<div class="pb-iblock pb-fr pb-oths">
					<a onclick="Sys.commStat(2);commonLib.SetHome(this);"
						href="javascript:void(0);" class="nmt">设为首页</a>
						<span class="nmt"> | &nbsp; </span> <a
						onclick="Sys.commStat(1);commonLib.addFavorite();" rel="sidebar"
						href="index.html" class="nmt">收藏我们</a>
					             <span class="nmt"> | </span> 
                        <div class="pb-ucenter pb-after-clear" id="islogin"> 
                            <div id="uMessageCenter"> 
                                <i class="pb-icons triangle"></i> 
                                <a href="/user" id="uSetEntry-head"><img src="${sessionScope.user.uimg }" alt="阿斗" /></a> 
                                <i class="pb-icons notice pb-hide"></i> 
                            </div> 
                            <br /> 
                            <ul> 
                                <li><a href="/user/userinfo" id="uSetEntry"><i class="pb-icons my"></i> 个人中心</a></li> 
                                <li><a href="/user/logout"><i class="pb-icons logout"></i> 退出登录</a></li> 
                            </ul> 
                        </div>
                        <div id="nologin">
                        	<div class="pb-iblock" style="margin-top:12px ;">
							<a href="/user/login" id="uSetEntry"><i class="pb-icons my"></i> 登录</a>
                            <a href="/user/reg"><i class="pb-icons logout"></i> 注册</a>
							</div>
                        	
                        </div>
                        
                        <br /> 
                        
                <script type="text/javascript">
                	$(function(){
                		var user='${sessionScope.user}';
                		if(user==''){
                			console.log("请登录");
                			$("#nologin").show();
                			$("#islogin").hide();
                		}else{
                			console.log(user);
                			$("#nologin").hide();
                			$("#islogin").show();
                		}
                	});
                	
                </script>
					<form
						onsubmit="W.tips('暂未开放搜索功能，敬请期待!');Sys.commStat(6);return false;"
						action="">
						<input type="submit" value="" class="pb-search-btn" /> <input
							type="text" class="pb-search" />
					</form>
				</div>
			</div>
			<!-- 公共头部 -->
			<!-- 面包屑 -->
			<div class="pb-main pb-breadcrumbs pb-mt40 pb-size-small">
				<a href="/index">首页</a> &gt;&gt; <a href="/earlist">叫醒耳朵</a>
				&gt;&gt; <a>${music.mtitle }</a>
			</div>
			<!-- 面包屑结束 -->
			<!--content-->
			<div class="pb-main pb-mt20">
				<div class="commmain">
					<div class="post">
						<div class="ear-meta">
							<p>
							<div class="container">

								<div id="player3" class="aplayer">
									<pre class="aplayer-lrc-content" id="t1">

				                   </pre>
                                  <input  type="hidden" value="${music.mdesc}"  id="mdesc"   >
                                  <input  type="hidden" value="${music.mtitle }"  id="mtitle"   >
                                  <input  type="hidden" value="${music.mname }"  id="mname"   >
                                  <input  type="hidden" value="${music.murl }"  id="murl"    >
                                  <input  type="hidden" value="${music.mimg}"  id="mimg"    >
									<script>
									var mdesc ="http://image.amall.com/img/"+document.getElementById("mdesc").value;
					             var htmlobj = $.ajax({
						                url: mdesc,
						                async: false
					              });
					            $("#t1").append(htmlobj.responseText);
				             </script>
								</div>
							</div>

			<script src="dist/APlayer.min.js"></script>
			<script>
			
			var mtitle =document.getElementById("mtitle").value;
			var mname =document.getElementById("mname").value;
			var murl ="http://image.amall.com/img/"+document.getElementById("murl").value;
			var mimg ="http://image.amall.com/img/"+document.getElementById("mimg").value;
			
			   var ap3 = new APlayer({
				element: document.getElementById('player3'),
				narrow: false,
				autoplay: false,
				showlrc: true,
				music: {
					title: mtitle,
					author: mname,
					url: murl,
					pic: mimg
				 }
			  });
			 ap3.init();
		</script>

							</p>
							<p>
								<span>曲名：</span>${music.mtitle }</p>
							<p>
								<span> NJ：</span>${music.mname }</p>
							<p>
								<span>来自：</span>网络
							</p>
							<p>
								<span>发布：</span>${time}</p>
							<div
								style="line-height: 26px; font-weight: bold; margin: 10px 0px;">
								<span class="pb-fl">分享给我的好朋友：</span>
								<div class="bdsharebuttonbox bdshare-button-style0-16"
									data-bd-bind="1453465345900">
									<a data-cmd="more" class="bds_more"></a> <a data-cmd="qzone"
										class="bds_qzone" title="分享到QQ空间"></a> <a data-cmd="tsina"
										class="bds_tsina" title="分享到新浪微博"></a> <a data-cmd="tqq"
										class="bds_tqq" title="分享到腾讯微博"></a> <a data-cmd="renren"
										class="bds_renren" title="分享到人人网"></a> <a data-cmd="weixin"
										class="bds_weixin" title="分享到微信"></a>
								</div>
								<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"分享:${music.mtitle}","bdDesc":"功能测试","bdMini":"2","bdMiniList":false,"bdPic":"http://www.sharesmile.cnimages/post_9999_6f00b8699c.jpg","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
							</div>
						</div>

						<div class="relate"></div>
					</div>
					<!-- comment list-->
					<div id="ds-thread">
						<div id="commentlist" name="commentlist" class="ds-comments-info">
							<a name="commentlist" id="comment_num_place" class="c_yel">
								${count}</a>条评论
						</div>
						<div id="comment-wrapper">
							<div class="pager-nav-warpper">
								<ul class="yiiPager">
								</ul>
							</div>
							<ul style="opacity: 1;" class="ds-comments">
								<c:forEach items="${list}" var="lis">
									<li id="comment-li-${lis.talk.tid }" class="ds-post">
										<div class="ds-post-self">
											<div class="ds-post-main">
												<div class="ds-avatar">
													<a href="javascript:void(0);"> <img
														alt="${lis.talk.user.uname }" src="${lis.talk.user.uimg }"
														style="width: 50px; height: 50px;" />
													</a>
												</div>
												<div class="ds-comment-body">
													<div class="ds-comment-header">
														<a class="ds-user-name ds-highlight"
															href="javascript:void(0);">${lis.talk.user.uname }</a>
													</div>
													<div class="comment-content">${lis.talk.tcontent}</div>
													<div class="ds-comment-footer">
														<span class="ds-time" title="${lis.time }">${lis.time}</span>
														<a href="javascript:void(0);"
															onclick="reply(${lis.talk.tid },${lis.talk.tarticleid},${lis.talk.tcategory},'${lis.talk.user.uname }');"
															class="ds-post-reply"><span class="ds-ui-icon"></span>回复</a>
														<div id="test00"></div>
													</div>
												</div>
											</div>
										</div>
										<div style="padding-left: 72px;"
											id="child-wrapper-${lis.talk.tid }">

											<c:if test="${lis.childCount >0}">
												<div class="more_div">
													<a href="javascript:void(0);"
														onclick="selectchild(${lis.talk.tid },${lis.talk.tarticleid},${lis.talk.tcategory})"><span
														class=${lis.talk.tid }>查看全部 ${lis.childCount} 条纪录</span></a>
												</div>
												<ul id=${lis.talk.tid }></ul>
											</c:if>
										</div>
										<div id="reply-box-151" style="padding-left: 72px;"></div>
									</li>
								</c:forEach>
							</ul>
							<div class="pager-nav-warpper">
								<ul class="yiiPager">
								</ul>
							</div>
						</div>
					<div class="replybox">
					
					<form action="" id="form1">
					<input type="hidden" id="tarticleid" name="tarticleid" value="${music.mid}">
					<input type="hidden" id="tcategory" id="tcategory" name="tcategory" value="3">
					<textarea rows="5" cols="80" name="tcontent" id="tcontent"></textarea>	
					</form>
					<button onclick="submittcontent()">&nbsp;发&nbsp;&nbsp;表&nbsp;</button>
					</div>
					
					
					
					
					<div class="pb-mt50 pb-listpage">
						<div>

							共 <i class="blue pb-mt50 pb-listpage">${page.total }</i>
							条记录，当前显示第 <i class="blue">${page.pageNum } </i> 页 / 共 <i
								class="blue">${page.pages }</i> 页
						</div>
						<div class="pb-mt50 pb-listpage">
							<table>
								<tbody>
									<tr>
										<td><a class="yiiPagerA"
											href="ear_detail?mid=${music.mid}&pageNum=${page.navigateFirstPage }">首页</a></td>
										<c:if test="${page.pageNum-2>0 }">
											<td><a class="yiiPagerA"
												href="ear_detail?mid=${music.mid}&pageNum=${page.pageNum-2 }">${page.pageNum-2 }</a></td>
										</c:if>
										<c:if test="${page.pageNum-1>0 }">
											<td><a class="yiiPagerA"
												href="ear_detail?mid=${music.mid}&pageNum=${page.pageNum-1 }">${page.pageNum-1 }</a></td>
										</c:if>
										<!-- 当前页 -->
										<td><a class="yiiPagerA on">${page.pageNum }</a></td>

										<c:if test="${(page.pageNum+1)<=page.pages }">
											<td><a class="yiiPagerA"
												href="ear_detail?mid=${music.mid}&pageNum=${page.pageNum+1 }">${page.pageNum+1 }</a></td>
										</c:if>
										<c:if test="${(page.pageNum+2)<=page.pages }">
											<td><a class="yiiPagerA"
												href="ear_detail?mid=${music.mid}&pageNum=${page.pageNum+2 }">${page.pageNum+2 }</a></td>
										</c:if>
										<td><a class="yiiPagerA"
											href="ear_detail?mid=${music.mid}&pageNum=${page.navigateLastPage }">尾页</a></td>
									</tr>
								</tbody>
							</table>
						</div>

					</div>
					
					
					</div>
					<!-- end comment list-->
				</div>
				<div class="commside">
					<!--右侧我要投稿公共部分-->
					<div class="pb-iblock pb-fr pb-after-clear pb-main-side">
						<img alt="征文比赛 有奖征文" class="pb-block"
							src="/images/icon_tougaoyouqian.jpg" />
						<h6 class="pb-mt15 pb-clr1 pb-size-big">下期专题</h6>
						<div class="pb-line2 pb-mt5"></div>
						<a href="news_detail.html?/add" class="tle pb-mt5">年味为什么越来越淡了</a>
						<div class="pb-line2 pb-mt5"></div>
						<h6 class="pb-mt15">
							<span class="pb-clr1 pb-size-normal">已投稿 <i class="tougao">3</i></span>
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
								class="pb-clr1 pb-size-small pb-underline"
								href="javascript:Sys.showRuleDiv();">获奖规则</a>
						</h6>
						<a href="news_detail.html?/add"
							class="but pb-clr1 pb-size-normal pb-mt15">有奖征文</a>
					</div>
					<!--右侧我要投稿公共部分-->
					<div class="pb-main-side pb-iblock pb-after-clear pb-fr pb-mt40">
						<h6 class="pb-clr1 pb-size-big">征文排行</h6>
						<div class="pb-line2 pb-mt5"></div>
						<ul class="pb-mt10 previous-term pb-size-normal">
							<li><span>.</span> <a href="news_detail.html?-8-55">有一种毕业，叫先走一步</a>
								<div class="pb-line2"></div></li>
							<li><span>.</span> <a href="news_detail.html?-4-27">用今生的修行
									为你们的来生祈福</a>
								<div class="pb-line2"></div></li>
							<li><span>.</span> <a href="news_detail.html?-3-16">我的初恋</a>
								<div class="pb-line2"></div></li>
							<li><span>.</span> <a href="news_detail.html?-6-45">当你老了</a>
								<div class="pb-line2"></div></li>
							<li><span>.</span> <a href="news_detail.html?-7-50">我就在这里旅行，给你讲沿途的风景</a>
								<div class="pb-line2"></div></li>
							<li><span>.</span> <a href="news_detail.html?-6-43">有多少爱可以重来</a>
								<div class="pb-line2"></div></li>
							<li><span>.</span> <a href="news_detail.html?-4-28">我的“天空之城”</a>
								<div class="pb-line2"></div></li>
						</ul>
					</div>
				</div>
			</div>
			<div style="clear: both;"></div>

<script type="text/javascript">


function reply(ttopicid ,tarticleid,tcategory,nmae){
	var messageStr = "输入评论";
    var defaultStr = "@"+nmae+" ";
	var tcontent=window.prompt(messageStr, defaultStr);
	if(tcontent!=null&&tcontent!=""){
	$.ajax({
		type :"POST",
		url : "/ear_add",
		data : {"ttopicid" :ttopicid,"tarticleid":tarticleid,"tcategory":tcategory,"tcontent":tcontent},	
		success : function(talkExtent) {
			if(talkExtent.talk!=null&&talkExtent.talk!=""){
			 W.tips("评论成功");
			 $("#"+ttopicid).append("<li>"
    				+'<div class="ds-post-self">'
    				+'<div class="ds-post-main">'
    					+'<div class="ds-avatar">'
    						+'<a href="javascript:void(0);">'
    							+'<img style="width:50px;height:50px;" src="'+talkExtent.talk.user.uimg +'" >'
    						+"</a>"
    					+"</div>"
    					+'<div class="ds-comment-body">'
    						+'<div class="ds-comment-header">'
    						+'<a href="javascript:void(0);" class="ds-user-name ds-highlight">'	
    						+talkExtent.talk.user.uname
    						+"</a>"
    						+"</div>"
    						+'<div class="comment-content">'
    						+talkExtent.talk.tcontent
    						+"</div>"
    						+'<div class="ds-comment-footer">'
    						+"<span>"
    						+talkExtent.time
    						+"</span>"
    						+'<a class="ds-post-reply" onclick="reply('+talkExtent.talk.tid+','+talkExtent.talk.tarticleid+','+talkExtent.talk.tcategory+',,'+'\''+talkExtent.talk.user.uname+'\''+');" href="javascript:void(0);">'
    						+'<span class="ds-ui-icon">'
    						+"</span>"+"回复"+"</a>"
    						+"</div>"
    					+"</div>"
    					+"<ul id="+talkExtent.talk.tid+">"
    					+"</ul>"
    				+"</div>"
    			+"</div>"
    		+"</li>")
			}
			else{
				W.tips("请先登录后再进行评论")
			}
		}	
	});
	}
	else(
			W.tips("评论失败，您没有输入内容")	
	)
	
}

function selectchild(ttopicid,tarticleid,tcategory){
	//var child=$()
	$.ajax({
		type :"POST",
		url : "/ear_child",
		data : {"tarticleid":tarticleid,"tcategory":tcategory,"ttopicid":ttopicid},
	    success : function(massage) {
	    	var mass=massage;
            $("."+ttopicid).html("");
	    	$.each(mass, function(index, item){ 		
	    		$("#"+ttopicid).append("<li>"
	    				+'<div class="ds-post-self">'
	    				+'<div class="ds-post-main">'
	    					+'<div class="ds-avatar">'
	    						+'<a href="javascript:void(0);">'
	    							+'<img style="width:50px;height:50px;" src="/images/default.gif" alt="+item.talk.user.uname+">'
	    						+"</a>"
	    					+"</div>"
	    					+'<div class="ds-comment-body">'
	    						+'<div class="ds-comment-header">'
	    						+'<a href="javascript:void(0);" class="ds-user-name ds-highlight">'	
	    						+item.talk.user.uname
	    						+"</a>"
	    						+"</div>"
	    						+'<div class="comment-content">'
	    						+item.talk.tcontent
	    						+"</div>"
	    						+'<div class="ds-comment-footer">'
	    						+"<span>"
	    						+item.time
	    						+"</span>"
	    						+'<a class="ds-post-reply" onclick="reply('+item.talk.tid+','+item.talk.tarticleid+','+item.talk.tcategory+','+'\''+item.talk.user.uname+'\''+');" href="javascript:void(0);">'
	    						+'<span class="ds-ui-icon">'
	    						+"</span>"+"回复"+"</a>"
	    						+"</div>"
	    					+"</div>"
	    					+"<ul id="+item.talk.tid+">"
	    					+"</ul>"
	    				+"</div>"
	    			+"</div>"
	    		+"</li>")
	   	    });
	    }
		
	 });
}

</script>

<script type="text/javascript">


function submittcontent(){
	var tarticleid=document.getElementById("tarticleid").value;
	var tcategory=document.getElementById("tcategory").value;
	var tcontent=document.getElementById("tcontent").value;
	if(tcontent!=null&&tcontent!=""){
	$.ajax({
		type :"POST",
		url : "/ear_add",
		data : {"tarticleid" :tarticleid,"tcategory":tcategory,"tcontent":tcontent},	
		success : function(talkExtent) {
			if(talkExtent.talk!=null&&talkExtent.talk!=""){
				 W.tips("评论成功");
			$(".ds-comments").append('<li id="comment-li-'+talkExtent.talk.tid+' class="ds-post">'
					+'<div class="ds-post-self">'
						+'<div class="ds-post-main">'
							+'<div class="ds-avatar">'
								+'<a href="javascript:void(0);">'
								+'<img   src="'+talkExtent.talk.user.uimg+'" style="width: 50px; height: 50px;" />'
								+"</a>"
							+"</div>"
							+'<div class="ds-comment-body">'
							+'<div class="ds-comment-header">'	
								+'<a class="ds-user-name ds-highlight" href="javascript:void(0);">'+talkExtent.talk.user.uname+'</a>'
								+'</div>'
								+'<div class="comment-content">'+talkExtent.talk.tcontent+'</div>'
								+'<div class="ds-comment-footer">'
									+'<span class="ds-time" title="'+talkExtent.time+'">'+talkExtent.time+'</span>'
									+'<a href="javascript:void(0);" onclick="reply('+talkExtent.talk.tid+','+talkExtent.talk.tarticleid+','+talkExtent.talk.tcategory+','+'\''+talkExtent.talk.user.uname+'\''+');" class="ds-post-reply"><span class="ds-ui-icon">'
									+'</span>'+"回复"+"</a>"
								+"</div>"
								+"</div>"
								+"</div>"
								+"</div>"
					+'<div style="padding-left: 72px;" id="child-wrapper-'+talkExtent.talk.tid+'">'
					+'<ul id='+talkExtent.talk.tid+'></ul>'
					+'</div>'
					+'<div id="reply-box-151" style="padding-left: 72px;"></div>'
				+'</li>'
			);
			
			}
			else{
				W.tips("请先登录后再进行评论")
			}
		}
  });
	}
	
	else(
			W.tips("评论失败，您没有输入内容")	
	)
	
}



</script>






			<script type="text/javascript">
vars.currPostId = '241';
vars.postCommentNum = parseInt('3');
vars.verifyHtml = '<img onclick="changeVerifyCodeImage();" id="yw0" src="/ear/captcha/v/56a21f537ad6e" alt="" /><a href="javascript:void(0);" id="yw0_button" class="yw0_button" onclick="changeVerifyCodeImage();">看不清？点击这里</a>';
vars.loadCommUrl = '/post/commentlist';
vars.loadChildCommUrl = '/post/childCommentList';

$(document).ready(function(){
	$("#ds-thread").append( tpl2html( 'editBoxTpl', {'cpid':0, 'id':vars.currPostId}));//装载编辑器
	
	if( vars.postCommentNum > 0){
		setTimeout(function(){
			Sys.loadEntityComm( vars.currPostId);
		},'2000');
	}else{
		$("#comment-wrapper").html('');
	}

	AudioPlayer.setup("/js/player.swf", {  
		width: 350,  
		initialvolume: 100
	});

	AudioPlayer.embed($(this).attr('id'), {
		soundFile: $(this).attr('soundFile'),
		titles: $(this).attr('titles'),
		artists:$(this).attr('artists'),
		autostart: $(this).attr('autostart'),
		loop:$(this).attr('loop')
	});

	Sys.updateEntityClicknum('/stat/ClickNum','p',vars.currPostId);
});
function submitPostComment(id){	
	jq = $("#post-form-"+id);
	var verifyId = "verifyCodePost"+( id == '0' ? "" : id);
	if( jq.find('textarea').val() == ''){
		W.tips( '您好像还没有填写内容哦！');
		return false;
	}
	if( !Sys.checkUserLogin( false) && $("#"+verifyId).val() == ''){
		displayVerifyCodeMsgbox(vars.verifyHtml,'/post/CheckVerifyCode',function(){
			submitPostComment(id);
		}, verifyId);
		return false;
	}
	if( vars.ajaxSubmiting){
		W.tips('评论正在提交，请稍后...');
		return false;
	}
	vars.ajaxSubmiting = true;
	jq.ajaxSubmit(function( ret){
		ret = $.evalJSON( ret);
		if( ret.ret == 0){			
			if( parseInt(ret.cpid) > 0){
				Sys.removeAllForm();
				Sys.loadEntityChildComm( ret.pid, ret.cpid);
			}else{
				jq.resetForm();
				Sys.loadEntityComm( ret.pid);
			}
			Sys.updateNumeric('comment_num_place');
			$("#"+verifyId).val('');
			vars.ajaxSubmiting = false;
			if(!Sys.checkUserLogin( false)){
				W.tips('已收藏您的评论，推荐您注册享笑网，做一个有头有脸有身份的人！',3);
			}
			return false;
		}else if( ret.ret == 3){//需要输入验证码
			vars.ajaxSubmiting = false;
			displayVerifyCodeMsgbox(vars.verifyHtml,'/post/CheckVerifyCode',function(){
				submitPostComment(id);
			}, verifyId);
			return false;
		}
		W.tips( ret.msg);
	});
}
</script>
			<script type="text/x-jsmart-tmpl" id="dataTpl">
        <div class="pager-nav-warpper">
			<ul class="yiiPager">
				{foreach $pager as $k => $page}
				<li class="{$page.lic}">
					<a href="javascript:void(0);" {foreach $page.htmlOptions as $a=> $v} {$a}="{$v}" {/foreach} >{$page.data}</a>
				</li>
				{/foreach}
			</ul>
		</div>
		<ul class="ds-comments" style="opacity: 1;">
            {foreach $list as $k => $lis}
			<li class="ds-post" id="comment-li-{$lis.tid}">
				<div class="ds-post-self">
					<div class="ds-post-main">
						<div class="ds-avatar">
							<a href="javascript:void(0);">
								<img style="width:50px;height:50px;" src="{$lis.user.uimg}" alt="{$lis.user.uname }">
							</a>
						</div>
						<div class="ds-comment-body">
							<div class="ds-comment-header">
								<a href="javascript:void(0);" class="ds-user-name ds-highlight">{$lis.user.uname }</a>
							</div>
							<div class="comment-content">
								{$lis.tcontent}
							</div>
							<div class="ds-comment-footer">
								<span title="{$lis.tcreatetime }" class="ds-time">{$lis.tcreatetime }</span>
								<a class="ds-post-reply" onclick="Sys.commentChildReply('{$lis.tarticleid}','{$lis.ttopicid}','{$lis.user.uname }','{$lis.tid}','{$lis.user.uid}';" href="javascript:void(0);"><span class="ds-ui-icon"></span>回复</a>
							</div>
						</div>
					</div>
				</div>
				<div id="child-wrapper-{$lis.tid}" style="padding-left:72px;">
					{if $comment.child}
                    {if $comment.main.reply > 1}
					<div class="more_div">
						<a href="javascript:void(0);" onclick="Sys.loadEntityChildComm( {$lis.tarticleid}, {$lis.tid});" id="child-click-{$lis.tid}">查看全部{$comment.main.reply}条纪录</a>
					</div>
					{/if}
					<ul>
						<li>
							<div class="ds-post-self">
								<div class="ds-post-main">
									<div class="ds-avatar">
										<a href="javascript:void(0);">
											<img style="width:50px;height:50px;" src="{$comment.child.headimage}" alt="{$comment.child.nickname}">
										</a>
									</div>
									<div class="ds-comment-body">
										<div class="ds-comment-header">
											<a href="javascript:void(0);" class="ds-user-name ds-highlight">{$comment.child.nickname}</a>
										</div>
										<div class="comment-content">
											{$comment.child.content}
										</div>
										<div class="ds-comment-footer">
											<span title="{$comment.child.createdate}" class="ds-time">{$comment.child.createdate}</span>
											<a class="ds-post-reply" onclick="Sys.commentChildReply('{$comment.main.pid}','{$comment.main.id}','{$comment.child.nickname}','{$comment.child.id}','{$comment.child.userid}');" href="javascript:void(0);"><span class="ds-ui-icon"></span>回复</a>
										</div>
									</div>
								</div>
							</div>
						</li>
					</ul>
					{/if}
				</div>
				<div style="padding-left:72px;" id="reply-box-{$comment.main.id}"></div>
			</li>
			{/foreach}
		</ul>
		<div class="pager-nav-warpper">
			<ul class="yiiPager">
				{foreach $pager as $k => $page}
				<li class="{$page.lic}">
					<a href="javascript:void(0);" {foreach $page.htmlOptions as $a=> $v} {$a}="{$v}" {/foreach} >{$page.data}</a>
				</li>
				{/foreach}
			</ul>
		</div>
</script>
			<script type="text/x-jsmart-tmpl" id="childCommentTpl">
<ul>
{foreach $commentlist as $k => $comment}
	<li class="ds-post">
		<div class="ds-post-self"> 
	           <div class="ds-post-main">
	                <div class="ds-avatar">
	                    <a href="javascript:void(0);">
	                        <img style="width:50px;height:50px;" src="{$comment.headimage}" alt="{$comment.nickname}">
	                    </a>
	                </div>
	                <div class="ds-comment-body">
	                    <div class="ds-comment-header" id="{$comment.nickname}">
	                        <a href="javascript:void(0);" class="ds-user-name ds-highlight">{$comment.nickname}</a>
	                    </div>
	                    <div class="comment-content">
	                    	{$comment.content}
	                    </div>
	                    <div class="ds-comment-footer">
	                        <span title="{$comment.createdate}" class="ds-time">{$comment.createdate}</span>
	                        <a class="ds-post-reply" onclick="Sys.commentChildReply('{$comment.pid}','{$comment.cpid}','{$comment.nickname}','{$comment.id}','{$comment.userid}');" href="javascript:void(0);"><span class="ds-ui-icon"></span>回复</a> 
	                    </div>
	                </div>
	           </div>
	     </div>
	</li>
{/foreach}
</ul>
</script>
			<script type="text/x-jsmart-tmpl" id="editBoxTpl">
        
</script>
		</div>
		<!-- 公共尾部 -->
		<div style="clear: both;"></div>
		<div class="pb-footer">
			<div class="pb-footer-wp">
				<div class="pb-main pb-footer-cnt pb-size-small">
					<span class="pb-fl">&copy; 2012 - 2015 深圳市享笑网科技有限公司版权所有 粤
						icp 备 13011067 号</span>
					<ul class="pb-fr">
						<li><a target="_blank" href="http://www.whzcwl.com.cn">志诚网络</a></li>
						<li><a
							href="http://wpa.qq.com/msgrd?v=1&amp;uin=2338601847&amp;site=www.sharesmile.cn&amp;menu=yes">版权声明</a></li>
						<li><a
							href="http://wpa.qq.com/msgrd?v=1&amp;uin=2338601847&amp;site=www.sharesmile.cn&amp;menu=yes">客服中心</a></li>
						<li><a
							href="http://wpa.qq.com/msgrd?v=1&amp;uin=2338601847&amp;site=www.sharesmile.cn&amp;menu=yes">联系我们</a></li>
					</ul>
				</div>
			</div>
		</div>
		<!-- 公共尾部 -->
		<div id="goTopButton" class="ssretotop">
			<div class="SG-sidecont">
				<a id="gotonext" href="javascript:;" style="visibility: visible;"></a>
				<a title="点击我 坐飞机到顶部" style="visibility: visible;"
					href="javascript:void(0)" class="pb-icons" id="retotop"></a> <a
					id="gotopre" href="javascript:;"></a>
			</div>
		</div>
	</div>
	<script type="text/x-jsmart-tmpl" id="tpl-pb-rule">
		<img src="/images/rule.gif" alt="获奖规则"/>
		<a href="javascript:top.window.location.href='/user#go=cash';" style="position: absolute; cursor:pointer;height: 24px; width: 72px; left: 730px; top: 494px; display:inline-block;background:#fff;opacity:0; filter:alpha(opacity=0);"></a>
	</script>
	<script src="/js/15502332.js" type="text/javascript"
		language="javascript"></script>
	<noscript>
		<a href="http://www.51.la/?15502332" target="_blank"><img
			alt="我要啦免费统计" src="/images/15502332.asp" style="border: none" /></a>
	</noscript>
	<script language="javascript" type="text/javascript">
	$(document).ready(function(){
		$(".pb-ucenter").bind('mouseenter', function(){
			$(this).find('ul').stop().slideDown('fast');
			Sys.clearFlicker('uMessageCenter');
		}).bind('mouseleave', function(){
			$(this).find('ul').stop().slideUp('fast');
		});
		
		$("#goTopButton").click(function(){
			Sys.scrollTo($('body'));
			Sys.commStat(33);
		});
		if( vars.browser != 'IE6'){
			var w_w = parseInt( $("body").width());
			var obj = $("#goTopButton");
			$(window).scroll(function(){
				if($(this).scrollTop() > 500){
					if( !isNaN(w_w) && w_w > 0){
						obj.css('left', (Math.ceil((w_w-1050)/2) + 1050 + 10) + "px" );
					}
					obj.fadeIn();
				}else{
					obj.fadeOut();
				}
			});
		}
		Sys.hide51();
	});
	</script>
	<script src="/js/form.js" type="text/javascript"></script>
	<script src="/js/ap.js?v=2.0" type="text/javascript"></script>
	<script type="text/javascript">
/*<![CDATA[*/


function changeVerifyCodeImage(){
	$.ajax({
		url: "\/ear\/captcha\/refresh\/1",
		dataType: 'json',
		cache: false,
		success: function(data) {
			$('#yw0').attr('src', data['url']);
			$('body').data('captcha.hash', [data['hash1'], data['hash2']]);
		}
	});
	return false;	
}


/*]]>*/
</script>
</body>
</html>